<?php
	/*
	 * To change this template, choose Tools | Templates
	 * and open the template in the editor.
	 */
	if (!session_start()) session_start();
	require("../../librarys/funcs/Utils.php");
	require("../../librarys/funcs/Connection.php");
	$utils       = new Utils();
	$check_isset = array(
		'table',
		'id',
	);
	if ($utils->check_isset_get($check_isset)) {
		if ($utils->check_empty_get($check_isset)) {
			settype($id, "int");
			$conn = new Connection();
			if ($conn->delete_one_record($_GET['table'], $_GET['id']))
				echo 'success';
			else
				echo 'error';
		}
	}
?>